﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace SIMA.Controls.Navigation
{
    public class PathConversionEventArgs : RoutedEventArgs
    {
        public enum ConversionMode
        {
            DisplayToEdit,
            EditToDisplay,
        }

        public string DisplayPath { get; set; }

        public string EditPath { get; set; }

        public ConversionMode Mode { get; private set; }

        public object Root { get; private set; }

        public PathConversionEventArgs(ConversionMode mode, string path, object root, RoutedEvent routedEvent)
            : base(routedEvent)
        {
            Mode = mode;
            DisplayPath = EditPath = path;
            Root = root;
        }
    }

    public delegate void PathConversionEventHandler(object sender, PathConversionEventArgs e);
}
